widget: Fix can-focus
authorMatthias Clasen <mclasen@redhat.com>
Wed, 27 Jan 2021 04:43:11 +0000 (23:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 27 Jan 2021 04:45:06 +0000 (23:45 -0500)
commit8ef1d6a49ca2955d152e67012f79b9ad5cc73a37
tree452e6396a9a58c30a98fa3071f04c485fd0836ee
parentec9159f98356d005c08e11e6d2599a2f76e4b96e
widget: Fix can-focus

Setting can-focus to FALSE on a widget is supposed
to prevent focus from entering the entire subtree.
So when we grab focus directly to a widget, we need
to check the can-focus flag not just of the widget
itself, but all its ancestors.

Fixes: #3610
gtk/gtkwidget.c